

<div class="menu">
    <nav class="nav" id="topnav">
        <h1 class="logo"><a href="http://www.yangqq.com">杨青博客</a></h1>
        <li><a href="index.html">网站首页</a> </li>
        <li><a href="about.html">关于我</a> </li>
        <li><span style="color: #FFF">分类</span>
            <ul class="sub-nav">
                <?php foreach ($typss as $lino => $line): ?>
                <li><a href="<?=  \yii\helpers\Url::toRoute(['post/type','type'=>$line['id']]);?>"><?=$line['category_name'] ?></a></li>

                <?php endforeach; ?>
            </ul>
        </li>
        <li><a href="time.html">时间轴</a> </li>
        <!--search begin-->

        <!--search end-->
    </nav>
</div>